package com.xca.is.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class TrainEntity {

    private int code;
    private int count;
    private String go;
    private String to;
    private String form;
    private String time;
    private String date;
    private List<DataDTO> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getGo() {
        return go;
    }

    public void setGo(String go) {
        this.go = go;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getForm() {
        return form;
    }

    public void setForm(String form) {
        this.form = form;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("TrainNumber")
        private String trainNumber;
        private String start;
        private String end;
        @SerializedName("DepartTime")
        private String departTime;
        @SerializedName("ArriveTime")
        private String arriveTime;
        @SerializedName("TimeDifference")
        private String timeDifference;
        @SerializedName("SeatList")
        private List<SeatListDTO> seatList;

        public String getTrainNumber() {
            return trainNumber;
        }

        public void setTrainNumber(String trainNumber) {
            this.trainNumber = trainNumber;
        }

        public String getStart() {
            return start;
        }

        public void setStart(String start) {
            this.start = start;
        }

        public String getEnd() {
            return end;
        }

        public void setEnd(String end) {
            this.end = end;
        }

        public String getDepartTime() {
            return departTime;
        }

        public void setDepartTime(String departTime) {
            this.departTime = departTime;
        }

        public String getArriveTime() {
            return arriveTime;
        }

        public void setArriveTime(String arriveTime) {
            this.arriveTime = arriveTime;
        }

        public String getTimeDifference() {
            return timeDifference;
        }

        public void setTimeDifference(String timeDifference) {
            this.timeDifference = timeDifference;
        }

        public List<SeatListDTO> getSeatList() {
            return seatList;
        }

        public void setSeatList(List<SeatListDTO> seatList) {
            this.seatList = seatList;
        }

        public static class SeatListDTO {
            @SerializedName("SeatName")
            private String seatName;
            @SerializedName("SeatPrice")
            private double seatPrice;
            @SerializedName("Seatresidue")
            private int seatresidue; // 余票

            public String getSeatName() {
                return seatName;
            }

            public void setSeatName(String seatName) {
                this.seatName = seatName;
            }

            public double getSeatPrice() {
                return seatPrice;
            }

            public void setSeatPrice(double seatPrice) {
                this.seatPrice = seatPrice;
            }

            public int getSeatresidue() {
                return seatresidue;
            }

            public void setSeatresidue(int seatresidue) {
                this.seatresidue = seatresidue;
            }
        }
    }
}
